package com.neusoft.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 商品分类实体类
 *
 * @author Lucifer
 * @since 2021/5/15 23:27
 */
@Data
@TableName("item_category")
@ApiModel("商品分类表-item_category")
public class Category implements Serializable {
    private static final long serialVersionUID = 3148176768559230877L;


    @TableId(type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("名称")
    private String name;

    @ApiModelProperty(hidden = true)
    private Integer pid;

    @ApiModelProperty(hidden = true)
    private Integer is_delete;

    @TableField(exist = false)
    @ApiModelProperty("分类下的商品")
    private List<Item> children;
}

